import Vue from 'vue'
import Router from 'vue-router'
import Home from "../components/Home";
import CompanyProfile from "../components/CompanyProfile";
import CompanyDynamic from "../components/CompanyDynamic";
import ProActivites from "../components/ProActivites";
import Services from "../components/Services";
import WholeProcess from "../components/WholeProcess";
import ContactUs from "../components/ContactUs";
Vue.use(Router);

export default new Router({
  mode: "history",
  routes: [
   /* {
      path: '/',
      name: '',
      component:
    }*/
    { //首页
      path: '/',
      name: 'Home',
      component:Home,
    },
    {//公司简介
      path: '/cp',
      name: 'CompanyProfile',
      component:CompanyProfile,
    },
     {//公司动态
      path: '/cd',
      name: 'CompanyDynamic',
      component:CompanyDynamic,
    },
    {//活动促销
      path: '/pa',
      name: 'ProActivites',
      component:ProActivites,
    },
    {//车型介绍
      path: '/services',
      name: 'Services',
      component:Services,
    },
    {//购车流程
      path: '/wp',
      name: 'WholeProcess',
      component:WholeProcess,
    },
    {//联系我们
      path: '/cu',
      name: 'ContactUs',
      component:ContactUs,
    },
  ]
})
